package com.ysd.lis.controller.eq;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.request.eq.EqMaintainStandardDto;
import com.ysd.lis.service.eq.EqMaintainStandardService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 设备管理-设备类型 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-07-31
 */
@RestController
@RequestMapping("/api/eq/eqMaintainStandard")
public class EqMaintainStandardController extends BaseController {
    @Autowired
    EqMaintainStandardService eqMaintainStandardService;

    @ApiOperation("查询")
    @GetMapping("/findMaintainStandardList")
    public Result findMaintainStandardList(CommonPageDto param){
        return eqMaintainStandardService.findMaintainStandardList(param);
    }


    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateMaintainStandard")
    public Result saveOrUpdateMaintainStandard(@RequestBody EqMaintainStandardDto dto) {
        return eqMaintainStandardService.saveOrUpdateMaintainStandard(dto);
    }


    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteMaintainStandardList")
    public Result batchDeleteMaintainStandardList(@RequestBody EqMaintainStandardDto dto){
        return  eqMaintainStandardService.batchDeleteMaintainStandardList(dto);
    }

}
